package com.stars.system.fitness.mapper;

import java.util.List;
import com.stars.system.fitness.domain.FitnessRecord;

/**
 * fitnessMapper接口
 * 
 * @author shuaibizhe
 * @date 2022-06-21
 */
public interface FitnessRecordMapper
{
    /**
     * 查询fitness
     * 
     * @param id fitness主键
     * @return fitness
     */
    public FitnessRecord selectFitnessById(Long id);

    /**
     * 查询fitness列表
     * 
     * @param fitness fitness
     * @return fitness集合
     */
    public List<FitnessRecord> selectFitnessList(FitnessRecord fitness);

    /**
     * 查询fitness列表-日历样式
     *
     * @param fitness fitness
     * @return String 集合
     */
    public List<String> selectFitnessCalendar(FitnessRecord fitness);

    /**
     * 新增fitness
     * 
     * @param fitness fitness
     * @return 结果
     */
    public int insertFitness(FitnessRecord fitness);

    /**
     * 修改fitness
     * 
     * @param fitness fitness
     * @return 结果
     */
    public int updateFitness(FitnessRecord fitness);

    /**
     * 删除fitness
     * 
     * @param id fitness主键
     * @return 结果
     */
    public int deleteFitnessById(Long id);

    /**
     * 批量删除fitness
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteFitnessByIds(Long[] ids);

    /**
     * 修改fitness完成状态
     *
     * @param fitness fitness
     * @return 结果
     */
    public int updateFitnessStatus(FitnessRecord fitness);
}
